//实例化编辑器
tinymce.init({
    selector: "#tinymceeditor",
    height: 800,
    language:'zh_CN',
    font_formats : "宋体=SimSun;新宋体=NSimSun;仿宋_GB2312=FangSong_GB2312;楷体_GB2312=KaiTi_GB2312;黑体=SimHei;微软雅黑=Microsoft YaHei;Arial=Arial;Arial Black=Arial Black;Times New Roman=Times New Roman;Courier New=Courier New;Tahoma=Tahoma;Verdana=Verdana;",
    fontsize_formats : "8px 9px 10px 12px 13px 14px 15px 16px 18px 24px 36px",
    plugins: [
        'advlist autolink lists link image charmap print preview hr anchor pagebreak',
        'searchreplace wordcount visualblocks visualchars code fullscreen',
        'insertdatetime media nonbreaking save table contextmenu directionality',
        'emoticons template powerpaste textcolor textpattern imagetools codesample toc',
        'help lineheight margintop marginbottom letterspacing imguploadtoqiniu formatpainter'
      ],
     toolbar1: 'code hr | undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image imguploadtoqiniu media',
     toolbar2: 'preview | forecolor backcolor | fontselect fontsizeselect | lineheightselect margintopselect marginbottomselect letterspacingselect | formatpainter removeformat',
     image_advtab: true,
     //paste_webkit_styles: "color font-size",
     /* menubar: "edit",
	 toolbar: "pastetext",
	 paste_as_text: true, */
	 powerpaste_word_import: "merge",
	 powerpaste_html_import: "merge",
     templates: [
        { title: 'Test template 1', content: 'Test 1' },
        { title: 'Test template 2', content: 'Test 2' }
      ],
    menubar: false,
    allow_script_urls:true
}); 
//tinymce.init({ selector:'textarea' });